package zuoye.test3;

public class Student {

    private String name;
    private String id;
    private String sex;
    private int age;
    private String degree;
    private String nameOfUniversity;

    public Student() {
    }

    public Student(String name, String id, String sex, int age, String degree, String nameOfUniversity) {
        this.name = name;
        this.id = id;
        this.sex = sex;
        this.age = age;
        this.degree = degree;
        this.nameOfUniversity = nameOfUniversity;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    public String getNameOfUniversity() {
        return nameOfUniversity;
    }

    public void setNameOfUniversity(String nameOfUniversity) {
        this.nameOfUniversity = nameOfUniversity;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", degree='" + degree + '\'' +
                ", nameOfUniversity='" + nameOfUniversity + '\'' +
                '}';
    }
}

